home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / swtools / mipsABI / examples / sup / port.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  472 b   |  38 lines

  1. /*
  2.  * portability routines for the mipsABI
  3.  */
  4.  
  5. #ifdef _ABI_SOURCE
  6. #include <string.h>
  7.  
  8. char *
  9. index(const char *s, int c)
  10. {
  11.     return strchr (s, c);
  12. }
  13.  
  14. char *
  15. rindex(const char *s, int c)
  16. {
  17.     return strrchr (s, c);
  18. }
  19.  
  20. void
  21. bcopy(const void *b1, void *b2, int length)
  22. {
  23.     memcpy (b2, b1, length);
  24. }
  25.  
  26. int
  27. bcmp(const void *b1, const void *b2, int length)
  28. {
  29.     return memcmp (b1, b2, length);
  30. }
  31.  
  32. void
  33. bzero(void *b, int length)
  34. {
  35.     memset (b, 0, length);
  36. }
  37. #endif /* _ABI_SOURCE */
  38.